package yaty.lee.ssh2.action;

import yaty.lee.ssh2.model.Person;
import yaty.lee.ssh2.service.PersonService;

import com.opensymphony.xwork2.ActionSupport;

public class PersonFinder extends ActionSupport {
	private static final long serialVersionUID = 7999915365565165728L;
	private Long emplid;
	private Person person;
	private transient PersonService personService;

	@Override
	public String execute() throws Exception {
		person = personService.findbyEmplid(emplid);
		return SUCCESS;
	}

	public Person getPerson() {
		return person;
	}

	public void setPersonService(PersonService personService) {
		this.personService = personService;
	}

}
